package view;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import br.edu.ifpb.calculator.Service;

public class Application {

	public static void main(String[] args) throws RemoteException, NotBoundException {
		//localizar e instancia o serviço remoto
		Registry registry = LocateRegistry.getRegistry(10999);
		Service service = (Service) registry.lookup(Service.NAME); 
		//instanciar a visão
		GUICalculator calculator = new GUICalculator(service);
		calculator.setVisible(true);
	}
	
}
